
#include "MaterialUVWDebug.h"
#include "HitRecord.h"
#include "Light.h"
#include "Point.h"
#include "Primitive.h"
#include "Ray.h"
#include "RenderContext.h"
#include "Scene.h"
#include "Vector.h"
#include "Math.h"
#include "Background.h"
#include <fstream>
#include <iostream>
using namespace std;

MaterialUVWDebug::MaterialUVWDebug()
{
}

MaterialUVWDebug::~MaterialUVWDebug()
{
}

void MaterialUVWDebug::shade(Color& result, const RenderContext& context,
                               const Ray& ray, const HitRecord& hit, const Color& atten, int depth) const
{
	Vector uvw;
	hit.getPrimitive()->computeUVW(uvw, context, ray, hit);
	result = Color(uvw.x(), uvw.y(), uvw.z());
	  
}
